import request from '@/utils/request'
import {number} from "echarts/src/export";

// 查询开票申请列表
export function listDrawBill(query) {
  return request({
    url: '/module/drawBill/list',
    method: 'get',
    params: query
  })
}

// 查询开票申请详细
export function getDrawBill(id) {
  return request({
    url: '/module/drawBill/' + id,
    method: 'get'
  })
}

// 新增开票申请
export function addDrawBill(data) {
  return request({
    url: '/module/drawBill',
    method: 'post',
    data: data
  })
}

// 修改开票申请
export function updateDrawBill(data) {
  return request({
    url: '/module/drawBill',
    method: 'put',
    data: data
  })
}

// 删除开票申请
export function delDrawBill(id) {
  return request({
    url: '/module/drawBill/' + id,
    method: 'delete'
  })
}
//获取可开票结算单
export function getstatement(data){
  return request({
       url:"/module/drawBill/getSettlement",
      method:"POST",
      data:data,
  })
}
//查询可开票金额
export  function getmoney(number){
  return  request({
    url:"/module/drawBill/getSettlement/"+number,
    method:"GET",

  })
}
